package com.chucang.shucang.common.base.constant;

/**
 * @author flitsneak
 * @email flitsneak@gmail.com
 * @date 2022/9/15 22:40
 * @description 缓存常量
 */
public interface CacheConstant {
    /**
     * oauth 缓存前缀
     */
    String PROJECT_OAUTH_ACCESS = "token::access_token";

    /**
     * oauth 缓存令牌前缀
     */
    String PROJECT_OAUTH_TOKEN = "shucang_oauth:token:";

    /**
     * 菜单信息缓存
     */
    String MENU_DETAILS = "menu_details";

    /**
     * 用户信息缓存
     */
    String USER_DETAILS = "user_details";

    /**
     * 字典信息缓存
     */
    String DICT_DETAILS = "dict_details";

    /**
     * oauth 客户端信息
     */
    String CLIENT_DETAILS_KEY = "client:details";

    /**
     * 参数缓存
     */
    String PARAMS_DETAILS = "params_details";

    /**
     * 用户登录验证码缓存
     */
    String USER_LOGIN_SMS_CODE = "user:login:app_sms:code:%s";
}
